package ui.gui.actions;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class DefaultFileFilter extends FileFilter {

	private String _extension = "";
	private String _description = "";
	
	public DefaultFileFilter(String extension, String description) {
		this._extension = extension;
		this._description = description;
	}
	@Override
	public boolean accept(File f) {
		
		return f.getName().endsWith(_extension);
	}

	@Override
	public String getDescription() {
		
		return _description;
	}
 
}
